import Vue from 'vue'
import VueRouter from 'vue-router'



// 注册路由插件
Vue.use(VueRouter)

// 
const routes = [
	{
		path: '/record',
		name: 'Record',
		component: () => import('../views/order/record.vue')
	},
	{
		path: '/recharge',
		name: 'Recharge',
		component: () => import('../views/order/recharge.vue')
	},
	{
		path: '/ledgr',
		name: 'Ledgr',
		component: () => import('../views/order/ledgr.vue')
	},
	{
		path: '/forward',
		name: 'Forward',
		component: () => import('../views/order/forward.vue')
	},
	{
		path: '/',
		name: 'Login',
		component: () => import('../views/login/Login.vue')
	},
	//主页路由
	{
		path: '/home',
		name: 'Home',
		component: () => import('../views/home/index.vue')
	},
	{
		path: '/xuan1',
		name: 'Xuan1',
		component: () => import('../views/xuan1/x.vue')
	},
	{
		path: '/charge',
		name: 'charge',
		component: () => import('../views/charge/chargingStation.vue')
	},
	{
		path: '/chargingStationList',
		name: 'chargingStationList',
		component: () => import('../views/charge/chargingStationList.vue')
	},
	{
		path: '/saveCharge',
		name: 'saveCharge',
		component: () => import('../views/charge/saveCharge.vue')
	},
	{
		path: '/saveStation',
		name: 'saveStation',
		component: () => import('../views/charge/saveStation.vue')
	},
	{
		path: '/chargingShow',
		name: 'chargingShow',
		component: () => import('../views/charge/chargingShow.vue')
	},

	// 报警设置
	{
		path: '/alarmsettings',
		name: 'AlarmSettings',
		component: () => import('../views/alarm/AlarmSettings/AlarmSettings.vue')
	},
	// 报警消息
	{
		path: '/alarmmessage',
		name: 'AlarmMessage',
		component: () => import('../views/alarm/AlarmMessage/AlarmMessage.vue')
	},

	//运维管理：任务管理路由
	{
		path: '/task',
		name: 'Task',
		component: () => import('../views/task/Task.vue')
	},
	//运维管理：运维人员路由
	{
		path: '/people',
		name: 'People',
		component: () => import('../views/task/People.vue')
	},
	//运维管理：查看任务管理路由
	{
		path: '/showTask/:id',
		name: 'ShowTask',
		component: () => import('../views/task/ShowTask.vue')
	},
	//运维管理：修改管理路由
	{
		path: '/updateTask/:id',
		name: 'UpdateTask',
		component: () => import('../views/task/UpdateTask.vue')
	},
	//运维管理：新增管理路由
	{
		path: '/addTask',
		name: 'AddTask',
		component: () => import('../views/task/AddTask.vue')
	},
	//运维管理：任务处理路由
	{
		path: '/processTask/:id',
		name: 'ProcessTask',
		component: () => import('../views/task/ProcessTask.vue')
	},
	//运维管理：任务处理详情路由
	{
		path: '/showProcessTask/:id',
		name: 'ShowProcessTask',
		component: () => import('../views/task/ShowProcessTask.vue')
	},
	
	// 系统管理
	{
		path: '/dept',
		name: 'Dept',
		component: () => import('../views/system/dept.vue')
	},
	{
		path: '/role',
		name: 'Role',
		component: () => import('../views/system/role.vue')
	},
	{
		path: '/user',
		name: 'User',
		component: () => import('../views/system/user.vue')
	}

]

const router = new VueRouter({
	routes
})

export default router